include $(TOPDIR)/rules.mk

PKG_NAME:=leenchan-packages
PKG_VERSION:=1.0
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define Package/leenchan/Default
SECTION:=leenchan
CATEGORY:=leenchan
TITLE:=leenchan's Packages
PKGARCH:=all
endef

define Package/leenchan-base
$(call Package/leenchan/Default)
VARIANT:=basic
TITLE=Basic
DEPENDS:=+kmod-nls-utf8 +luci +luci-app-upnp +curl +wget
endef

define Package/leenchan-iptables
$(call Package/leenchan/Default)
VARIANT:=iptables
TITLE=iptables
DEPENDS:=+iptables +iptables-mod-account +iptables-mod-chaos +iptables-mod-cluster +iptables-mod-clusterip +iptables-mod-condition +iptables-mod-conntrack-extra +iptables-mod-delude +iptables-mod-dhcpmac +iptables-mod-dnetmap +iptables-mod-extra +iptables-mod-filter +iptables-mod-fuzzy +iptables-mod-geoip +iptables-mod-hashlimit +iptables-mod-iface +iptables-mod-ipmark +iptables-mod-ipopt +iptables-mod-ipp2p +iptables-mod-iprange +iptables-mod-ipsec +iptables-mod-ipv4options +iptables-mod-led +iptables-mod-length2 +iptables-mod-logmark +iptables-mod-lscan +iptables-mod-lua +iptables-mod-nat-extra +iptables-mod-nflog +iptables-mod-nfqueue +iptables-mod-psd +iptables-mod-quota2 +iptables-mod-sysrq +iptables-mod-tarpit +iptables-mod-tee +iptables-mod-tproxy +iptables-mod-u32 +iptables-mod-ulog
endef

define Package/leenchan-proxy
$(call Package/leenchan/Default)
VARIANT:=proxy
TITLE=Proxy
DEPENDS:=+dnsmasq-full +ip +ipset +resolveip +luci-app-chinadns +luci-app-shadowsocks +luci-app-redsocks2 +luci-app-overthewall +luci-app-dnscrypt-proxy
#+luci-app-goagent +luci-app-shadowvpn
endef

define Package/leenchan-usb
$(call Package/leenchan/Default)
VARIANT:=usb
TITLE=USB
DEPENDS:=+block-mount +automount +kmod-usb-storage +kmod-usb-storage-extras +kmod-fs-ext4 +kmod-fs-vfat +ufsd-mipseb-3.18 +ntfs-3g +luci-app-hd-idle
endef

define Package/leenchan-download
$(call Package/leenchan/Default)
VARIANT:=download
TITLE=Download
DEPENDS:=+luci-app-aria2 +yaaw-aria2 +webui-aria2 +luci-app-thunder
#+transmission-daemon +transmission-web +luci-app-transmission
endef

define Package/leenchan-server
$(call Package/leenchan/Default)
VARIANT:=server
TITLE=Server
DEPENDS:=+luci-app-samba +luci-app-vsftpd-pam +luci-app-n2n-v1
endef

define Package/leenchan-wireless-crack
$(call Package/leenchan/Default)
VARIANT:=wireless-crack
TITLE=Wireless Crack
DEPENDS:=+kmod-rt2800-usb +kmod-rt2x00-lib +kmod-rtl8187 +wireless-tools +aircrack-ng +aircrack-ptw +mdk3 +reaver +libcap +screen
endef

define Package/leenchan-other
$(call Package/leenchan/Default)
VARIANT:=other
TITLE=Other
DEPENDS:=+luci-app-webshell +luci-app-adkill
#+luci-app-qosv4 +luci-app-adbyby +luci-app-privoxy
endef

define Package/leenchan-16m
$(call Package/leenchan/Default)
VARIANT:=16m
TITLE=16M
DEPENDS:=+leenchan-base +leenchan-iptables +leenchan-usb +leenchan-download +leenchan-proxy +leenchan-server +leenchan-other +firmware-16m
endef

define Package/leenchan-8m
$(call Package/leenchan/Default)
VARIANT:=test
TITLE=Test
DEPENDS:=+leenchan-base +leenchan-iptables +leenchan-proxy +leenchan-other +firmware-8m
endef

$(eval $(call BuildPackage,leenchan-base))
$(eval $(call BuildPackage,leenchan-iptables))
$(eval $(call BuildPackage,leenchan-usb))
$(eval $(call BuildPackage,leenchan-download))
$(eval $(call BuildPackage,leenchan-proxy))
$(eval $(call BuildPackage,leenchan-server))
$(eval $(call BuildPackage,leenchan-wireless-crack))
$(eval $(call BuildPackage,leenchan-other))
$(eval $(call BuildPackage,leenchan-16m))
$(eval $(call BuildPackage,leenchan-8m))
